<!DOCTYPE html>
<html>
<head>
    <title>函数和对象的关系</title>
    <meta charset="utf-8"/>
    <script src="../../js/jquery-1.10.1.min.js"></script>
    <script>
        //var obj = { a: 10, b: 20 };
        //var arr = [5, 'x', true];
        var obj = new Object();
        obj.a = 10;
        obj.b = 20;

        var arr = new Array();
        arr[0] = 5;
        arr[1] = 'x';
        arr[2] = true;

        console.log(typeof (Object));  // function
        console.log(typeof (Array));  // function
    </script>
</head>
<body>
    <p>函数和对象的关系</p>
</body>
</html>